package com.youhome.service.service;

import com.youhome.common.exception.CustomException;
import com.youhome.service.model.BCompany;
import com.youhome.service.model.Principal;

/**
 * Created by chen365 on 2017/10/20.
 */
public interface BCompanyService {

    int register(String phone, BCompany company);

    BCompany selectByUserId(Long userId);

    BCompany selectByPrimaryKey(Long companyId);

    BCompany selectByUUID(String uuid);

    int update(BCompany company) throws Exception;

    Long selectCompanyIdByUserId(Long userId);

    BCompany selectDetails(Principal principal) throws CustomException;

    BCompany updateHomePage(Principal principal,BCompany map)throws CustomException;

    BCompany updateCompany(Principal principal, BCompany map)throws CustomException;

    String selectUUID(Principal principal)throws CustomException;

    BCompany selectDetailsByUUID(String uuid)throws CustomException;
}
